package com.lyxs916.common;

/**
 * 说明:
 * 作者： 杨阳; 创建于：  2017-06-08  13:21
 */
public class ApiConstants {
    public static final String BASE_HOST = "https://urapi.honganjk.com/";
    public static final String TWO_HOST = "http://w-mall.lsh-cat.com:9998/";
    public static final String THREE_HOST = "http://c.m.163.com/";


    /**
     * 获取对应的host
     *
     * @param hostType host类型
     * @return host
     */
    public static String getHost(int hostType) {
        String host;
        switch (hostType) {
            case HostType.TYPE_DEFAULT:
                host = BASE_HOST;
                break;
            case HostType.TYPE_TWO:
                host = TWO_HOST;
                break;
            case HostType.TYPE_THREE:
                host = THREE_HOST;
                break;
            default:
                host = "";
                break;
        }
        return host;
    }








}
